/*
 * --------------------------------------------------------------
 * Copyright ©  2015 Hangzhou DtDream Technologies Co.,Ltd.
 * --------------------------------------------------------------
 *      Product: 协同数治
 *  Module Name: design
 * Date Created: 2023/2/2
 *  Description: TODO
 * --------------------------------------------------------------
 * Modification History
 * DATE            NAME            Description
 * --------------------------------------------------------------
 * 2023/2/2       yewj            TODO
 * --------------------------------------------------------------
 */

package com.dtdream.pattern.adapter.objadapter;

/**
 * TODO
 *
 * @Author: yewj
 **/
public class Phone {
    public void charging(Voltage5V v) {
        if (v.output5V() == 5) {
            System.out.println("电压5v,可以充电");
        } else {
            System.out.println("不能充电");
        }
    }
}
